package com.ztom.test.bean

import com.ztom.beans.factory.support.pojo.FactoryBean

/**
 * @author ZhangTao
 */
class PersonFactoryBean(
    var name: String? = null,
    var age: Int? = null
) : FactoryBean<Person> {

    override fun getObject(): Person {
        return Person(name, age)
    }

    override fun isSingleton(): Boolean {
        return true
    }
}